// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.el-popper {
  max-width: 800px;
  line-height: 180%;
}

fileList .cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;

  .el-dialog__headerbtn {
    height: 50px;
    top: 1px;
  }

  .el-dialog__body {
    padding: 20px;
  }

  .el-dialog__footer {
    padding: 0 10px 30px;
    text-align: center;

    .el-button--default {
      font-size: 16px;
      padding: 20px 25px;
    }
  }
}

.el-dialog .el-dialog__header {
  .el-dialog__title {
    color: #6a798d;
  }

  color: #6a798d;
  font-size: var(--el-dialog-title-font-size);
  border-radius: 8px 8px 0 0;
  background: var(--el-color-primary-light-9);
  margin: 0px;
  padding: 15px;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link {
  color: var(--el-color-primary) !important;
}

.el-table .el-table__cell {
  padding: 0px 0 !important;
  height: 45px !important;
  line-height: 45px !important;
}

.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #f5f9fe !important;
}

.el-table td.el-table__cell {
  border-bottom: none !important;
}

.el-table td.el-table__cell {
  border-right: none !important;
}

// 按钮样式
.el-button.el-button--default.is-plain {
  border: 1px var(--el-color-primary) solid;
  color: var(--el-color-primary);
  &.is-disabled{
    color: var(--el-button-disabled-text-color);
    cursor: not-allowed;
    background-image: none;
    background-color: var(--el-button-disabled-bg-color);
    border-color: var(--el-button-disabled-border-color);
  }
  &:hover {
    background-color: var(--el-color-primary-light-9);
  }
  &.is-disabled:hover,&.is-disabled:focus {
    background-color: var(--el-button-bg-color);
  }
}

.el-drawer__header {
  margin-bottom: 0px !important;
}

.el-scrollbar__bar {
  .el-scrollbar__thumb {
    background-color: #020f1a;
    &:hover {
      background-color: #37464f;
    }
  }
  &.is-vertical {
    .el-scrollbar__thumb {
      width: 8px;
    }
  }
  &.is-horizontal {
    .el-scrollbar__thumb {
      height: 8px;
    }
  }
}

.el-textarea{
  margin-bottom: 10px;
  .el-input__count{
    bottom: -20px!important;
    right: 0!important;
  }
}
